package com.chen.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.domain.CashWithdrawals;

import java.math.BigDecimal;

public interface CashWithdrawalsService extends IService<CashWithdrawals>{


    Page<CashWithdrawals> findPageForList(Page<CashWithdrawals> page, Long coinId, Long userId, String userName, String mobile, Byte status, String numMax, String numMin, String startTime, String endTime);

    /**
     * 审核提现数据
     * @param cashWithdrawals
     */
    void checkWithdrawals(CashWithdrawals cashWithdrawals);

    /**
     * GCN提现
     * @param cashWithdrawals
     */
    void sell(CashWithdrawals cashWithdrawals);

    /**
     * 把币种从可用余额转到冻结余额
     * @param amount 数量
     * @param coinId 币种id
     */
    void accountToLock(BigDecimal amount,Long coinId,Long userId,Byte direction);
}
